// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 2009-10-26 21:59:34


// Source File Name:   INVOKEINTERFACE.java

package com.vhly.classfile.bytecode;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

// Referenced classes of package com.vhly.classfile.bytecode:
//            BaseCode

public class INVOKEINTERFACE
        implements BaseCode {

    private int offset;
    private int index;
    private int count;
    private int zero;

    public INVOKEINTERFACE() {
    }

    public String getName() {
        return "INVOKEINTERFACE";
    }

    public int getOp() {
        return 185;
    }

    public int length() {
        return 5;
    }

    public void read(DataInputStream din)
            throws IOException {
        index = din.readUnsignedShort();
        count = din.read();
        zero = din.read();
        if (zero != 0)
            zero = 0;
    }

    public void write(DataOutputStream dout)
            throws IOException {
        dout.write(185);
        dout.writeShort(index);
        dout.write(count);
        dout.write(0);
    }

    public int getOffset() {
        return offset;
    }

    public String getDescrption() {
        String ret = "";
        return ret;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int interIndexShort) {
        index = interIndexShort;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int argCount) {
        count = argCount;
    }

    public void setOffset(int off) {
        offset = off;
    }
}